package org.jeecg.modules.lab.documents.management_technology.lab_technology.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.jeecg.modules.lab.device.entity.LabDevice;
import org.jeecg.modules.lab.device.mapper.LabDeviceMapper;
import org.jeecg.modules.lab.documents.management_technology.lab_technology.entity.LabTechnology;
import org.jeecg.modules.lab.documents.management_technology.lab_technology.mapper.LabTechnologyMapper;
import org.jeecg.modules.lab.documents.management_technology.lab_technology.service.ILabTechnologyService;
import org.jeecg.modules.lab.utensil.entity.LabUtensil;
import org.jeecg.modules.lab.utensil.mapper.LabUtensilMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 技术类文档
 * @Author: jeecg-boot
 * @Date:   2024-01-23
 * @Version: V1.0
 */
@Service
public class LabTechnologyServiceImpl extends ServiceImpl<LabTechnologyMapper, LabTechnology> implements ILabTechnologyService {
@Autowired
private LabTechnologyMapper labTechnologyMapper;
@Autowired
private LabDeviceMapper labDeviceMapper;
@Autowired
private LabUtensilMapper labUtensilMapper;
    /**
     * 查询所有的上传类型
     * @return
     */
    @Override
    public List<LabTechnology> queryPageList() {
        QueryWrapper<LabTechnology> objectQueryWrapper = new QueryWrapper<>();
        List<LabTechnology> list = labTechnologyMapper.selectList(objectQueryWrapper);
        QueryWrapper<LabDevice> labDeviceQueryWrapper = new QueryWrapper<>();
        List<LabDevice> labDevices = labDeviceMapper.selectList(labDeviceQueryWrapper);
        QueryWrapper<LabUtensil> labUtensilQueryWrapper = new QueryWrapper<>();
        List<LabUtensil> labUtensil = labUtensilMapper.selectList(labUtensilQueryWrapper);

        return list;
    }
}
